define(function(require, exports){
	exports.onDb = function( boot, data, app ) {
		var con = app.getContainer({
			scenes: 'main',
			full: false,
			sitelist: false,
			setup_btn: false,
			title: LANG('数据记录的查询'),
			type: 'scroll'
		});

		con.createBusiness(data.name, 'blackMagic/action/db.base', function(mod, notFirst){
				mod.reset();
		});
	};

	exports.onRun = function( boot, data, app ) {
		var con = app.getContainer({
			scenes: 'main',
			full: false,
			sitelist: false,
			setup_btn: false,
			title: LANG('运行时状态'),
			type: 'scroll'
		});

		con.createBusiness(data.name, 'blackMagic/action/run.base', function(mod, notFirst){
			mod.reset();
		});
	};

	exports.onRedis = function( boot, data, app ) {
		var con = app.getContainer({
			scenes: 'main',
			full: false,
			sitelist: false,
			setup_btn: false,
			title: LANG('Redis通知'),
			type: 'scroll'
		});

		con.createBusiness(data.name, 'blackMagic/action/redis.base', function(mod){
			mod.reset();
		});
	};

	exports.onLog = function( boot, data, app ) {
		var con = app.getContainer({
			scenes: 'main',
			full: false,
			sitelist: false,
			setup_btn: false,
			title: LANG('日志记录'),
			type: 'scroll'
		});

		con.createBusiness(data.name, 'blackMagic/action/log.base', function(mod){
			mod.reset();
		});
	};
});